package com.itheima.object;

public class Test {
    public static void main(String[] args) {
        //  目标： 面向对象编程快速入门
        //  1. 创建一个学生对象，封装波妞的数据
        Student s1 = new Student();
        s1.name = "波妞";
        s1.math=100;
        s1.chinese = 100;
        s1.printTotalScore();
        s1.printAverageScore();

        //  2. 创建一个学生对象，封装波妞的数据
        Student s2 = new Student();
        s1.name = "波仔";
        s1.math=90;
        s1.chinese = 70;
        s1.printTotalScore();
        s1.printAverageScore();

        System.out.println("s1:"+s1);
        System.out.println("s2:"+s2);
    }
}
